/**
 *
 */
package com.angel.dao.generic.filters;

import com.angel.dao.generic.interfaces.FindAllInstancesFilter;

/**
 *
 * @author William
 *
 */
public class NotNullInstanceFilter<H extends Object> implements FindAllInstancesFilter<H>{

	private Integer priorityLevel;

	public NotNullInstanceFilter(Integer priorityLevel){
		super();
		this.priorityLevel = priorityLevel;
	}


	public boolean appliesFilter(H instance) {
		return instance != null ? true: false;
	}


	public Integer priorityLevel() {
		return this.priorityLevel;
	}
}
